<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;

class RolesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$roles = [
    		[
    			'code' => 'admin',
    			'name' => 'Administrator',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now(),
			],[
    			'code' => 'manager',
    			'name' => 'Manager',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now(),
			],[
    			'code' => 'approver',
    			'name' => 'Approver',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now(),
			],[
    			'code' => 'reporter',
    			'name' => 'Reporter',
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now(),
			]
		];

    	DB::table('roles')->insert($roles);
    }
}
